
<!--弹出二维码页面-->

<div class="passModalMask" ng-click="index.askqr = false"> </div>

<div ng-controller="qrcodeController as qrcode" class="passModal" ng-class="{'animated  bounceInDown':index.askqr}" id="showqrcode">
	<div>
		<div>
			<div class="row">
				<!-- Address-->
				<div class="large-12 columns m10t" style="position: relative;">
					<!--点击叉号关闭-->
					<span
						style="position: absolute;right: 0;top: -10px;color: gray;" ng-click="index.askqr = false">
						<i class="icon-notvalid size-28 "></i>
					</span>
					<h2 class="text-center m10t m10b" translate>My TrustNote address</h2>
					<div>
						<div class="box-notification" ng-show="qrcode.addrError">
                			<span class="text-warning">
                  				{{qrcode.addrError|translate}}
                			</span>
						</div>


						<div class="text-center" ng-click="qrcode.copyAddress(qrcode.addr[index.walletId])" ng-show="qrcode.addr[index.walletId] || qrcode.generatingAddress">
							<qrcode size="180" data="{{qrcode.protocol}}:{{qrcode.addr[index.walletId]}}"></qrcode>

							<div  ng-show="qrcode.generatingAddress" style="position:relative; top:-226px; height:0px">
								<!--<div style="height:180px; width:180px; margin:auto; background: url(img/qr.png) white">-->
									<div class="spinner" style="margin-top:80px">
										<div class="rect1"></div>
										<div class="rect2"></div>
										<div class="rect3"></div>
										<div class="rect4"></div>
										<div class="rect5"></div>
									</div>
							</div>
						</div>
						<div class="m10t text-center" >
							<h4 ng-class="{'enable_text_select': !index.isCordova}" class="size-12">
								{{index.shared_address || (qrcode.generatingAddress ? '...' : qrcode.addr[index.walletId])}}
							</h4>
						</div>
					</div>
				</div>

				<div ng-show="qrcode.addr[index.walletId]">

					<!--移动端点击分享地址-->
					<!--<div class="m10t text-center" ng-show="index.isCordova">-->
                		<!--<span class="button outline dark-gray tiny round" ng-click="qrcode.shareAddress(qrcode.addr[index.walletId])">-->
                  			<!--<i class="fi-share"></i>-->
                  			<!--<span translate>Share address</span>-->
                		<!--</span>-->
					<!--</div>-->
					<div class="line-t size-12 text-center">
						<span ng-if="index.shared_address" translate>This address is shared with {{index.shared_address_cosigners}}.</span>
						<span ng-if="!index.shared_address" translate>Share this wallet address to receive payments.</span>
						<span ng-if="!index.shared_address && 0" translate>To protect your privacy, new addresses are generated automatically once you use them.</span>
					</div>
				</div>
			</div>
		</div>

		<div class="row m20t" ng-if="!index.shared_address">
			<div class="middle-12 columns">
				<button class="button black expand round m0" ng-click="qrcode.setAddress(true)" style="background: #0095ff" ng-disabled="qrcode.blockUx || index.isOffline ||qrcode.generatingAddress" translate>
						Generate new address
				</button>
			</div>
		</div>

		<!--更改代码-->
		<div class="m20t text-center m30b" ng-disabled="!qrcode.generatingAddress && qrcode.addr[index.walletId]">
			<a class="size-14" ng-click="qrcode.hideQrcode();qrcode.openCustomizedAmountModal(index.shared_address || qrcode.addr[index.walletId]);" style="color: #0095ff;">
				<span translate>Request a specific amount</span>
			</a>
		</div>
	</div>
</div>

